Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(installer): remove centos 7 and 8 repo due to eol #648

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

DexterYan
Copy link
Member

According to EOL notice

  • CentOS 8: May 31, 2024
  • CentOS 7: June 30, 2024

As a result, both http://mirror.centos.org/centos/7/extras/x86_64 and http://mirror.centos.org/centos/8/extras/x86_64/os are return 404 based on the EOL date.

Remove them for failing at the docker install step

@DexterYan DexterYan requested a review from laverya June 9, 2024 22:41
@DexterYan DexterYan added type::bug Something isn't working bug::normal labels Jun 9, 2024
else
yum-config-manager --add-repo=http://mirror.centos.org/centos/8/extras/x86_64/os || true
$URLGET_CMD "https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official" > EXTRAS_KEY
fi
rpm --import EXTRAS_KEY
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we don't have something to set EXTRAS_KEY won't this fail?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I have updated code to remove the EXTRAS_KEY import part, since it will not be used, if we are not going to set the repos

Copy link
Member

@emosbaugh emosbaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this

@@ -227,16 +227,6 @@ _installDocker() {
yum install -y yum-utils
logSuccess "Installed yum-utils"
fi
getUrlCmd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove this entire block from line 220 as you do not need yum-utils if you are not going to use yum-config-manager.

One thing to note is that this assumes that appstream repo is enabled on rhel. I think it is best that the script fail if it is not but it may end in a support case and we need to instruct the customer to enable.

Installing:
 container-selinux                               noarch                               2:2.229.0-2.module+el8.10.0+21196+3f0abbca                                 rhui-rhel-8-for-x86_64-appstream-rhui-rpms                                71 k

I tested this on gcp with image rhel-8-v20240515 and it seemed to work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also tested on azure since it is in the comment and that worked as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @emosbaugh! I have removed the yum-utils install part

@emosbaugh emosbaugh merged commit fefc1b6 into main Jun 10, 2024
3 checks passed
@emosbaugh emosbaugh deleted the dx/fix-centos-eol branch June 10, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants